package cn.itsource.ymcc.openfeign;


import cn.itsource.ymcc.common.result.JsonResult;
import cn.itsource.ymcc.domain.Login;
import cn.itsource.ymcc.openfeign.fallback.LoginFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-uaa",fallbackFactory = LoginFeignClientFallbackFactory.class)
public interface LoginFeignClient {
    @PostMapping("/login/save")
    public JsonResult saveOrUpdate(@RequestBody Login login);
}
